import request from "@/util/request";

/**
 * @description 县市
 * @param data
 * @returns {Promise}
 */
export function getAddressListApi(data) {
	return request({
		url: '/tbcCommunity/address',
		method: 'GET',
		data
	})
}
/**
 * @description 街道乡镇
 * @param data
 * @returns {Promise}
 */
export function getStreetListApi(data) {
	return request({
		url: '/tbcCommunity/street',
		method: 'GET',
		data
	})
}
/**
 * @description 社区/村组
 * @param data
 * @returns {Promise}
 */
export function getCommunityListApi(data) {
	return request({
		url: '/tbcCommunity/community',
		method: 'GET',
		data
	})
}
/**
 * @description 保存地区信息
 * @param data
 * @returns {Promise}
 */
export function updateByIdApi(data) {
	return request({
		url: '/tbcCommunity/updateById',
		method: 'post',
		data
	})
}